package com.pzb.market.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * 积分设置对象 mk_integral_setting
 * 
 * @author Mr_Wu
 * @date 2021-12-29
 */
public class MkIntegralSetting implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 商户id */
    private String extAppid;

    /** 积分管理：0为启用，1为停用 */
    private String status;

    /** 新用户赠送积分 */
    private Integer newUserGive;

    /** 客户每消费N元赠送1积分 */
    private Integer obtain;

    /** N积分抵扣1元 */
    private Integer deduction;

    /** 订单积分抵扣数量限制：0为不限制，1为限制数量 */
    private String deductionLimit;

    /** 每个订单积分抵扣限制数量，deduction_limit为1时有效 */
    private Integer limitQuantity;

    /** 积分清零方式：0为不清零，1为每个自然年清零一次 */
    private String reset;

    private String instruction;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExtAppid(String extAppid) 
    {
        this.extAppid = extAppid;
    }

    public String getExtAppid() 
    {
        return extAppid;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setNewUserGive(Integer newUserGive)
    {
        this.newUserGive = newUserGive;
    }

    public Integer getNewUserGive()
    {
        return newUserGive;
    }
    public void setObtain(Integer obtain) 
    {
        this.obtain = obtain;
    }

    public Integer getObtain() 
    {
        return obtain;
    }
    public void setDeduction(Integer deduction) 
    {
        this.deduction = deduction;
    }

    public Integer getDeduction() 
    {
        return deduction;
    }
    public void setDeductionLimit(String deductionLimit) 
    {
        this.deductionLimit = deductionLimit;
    }

    public String getDeductionLimit() 
    {
        return deductionLimit;
    }
    public void setLimitQuantity(Integer limitQuantity) 
    {
        this.limitQuantity = limitQuantity;
    }

    public Integer getLimitQuantity() 
    {
        return limitQuantity;
    }
    public void setReset(String reset) 
    {
        this.reset = reset;
    }

    public String getReset() 
    {
        return reset;
    }

    public String getInstruction() {
        return instruction;
    }

    public void setInstruction(String instruction) {
        this.instruction = instruction;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("extAppid", getExtAppid())
            .append("status", getStatus())
            .append("newUserGive", getNewUserGive())
            .append("obtain", getObtain())
            .append("deduction", getDeduction())
            .append("deductionLimit", getDeductionLimit())
            .append("limitQuantity", getLimitQuantity())
            .append("reset", getReset())
            .toString();
    }
}
